﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NHibernate.Mappings;

namespace Apollo.Modules.Salary
{
    [NHibernateEntity(Table = "SAPExportedEmployees")]
    public class SAPExportedEmployee
    {
        public SAPExportedEmployee() { }

        [PrimaryKey]
        public virtual int Id { get; set; }

        [Property]
        public virtual string OxyCode { get; set; }

        [Property]
        public virtual string InternalCode { get; set; }

        [Property]
        public virtual string SAPCode { get; set; }

        [Property]
        public virtual int ID_Oxigen { get; set; }

        [BelongsTo(Column = "ID_Employee")]
        public virtual Employee Employee { get; set; }

        [Property]
        public virtual State State { get; set; }

        [Property]
        public virtual SAPExportState SAPState { get; set; }

        [Property]
        public virtual string Reason { get; set; }

        [Property]
        public virtual DateTime? ExportDate { get; set; }

        [Property]
        public virtual DateTime LastModifyDate { get; set; }

    }

    public enum SAPExportState { 
        NotExported = -1,
        Inactive = 0,
        Active = 1,
        Pending = 5
    }
}
